﻿using MediatR;
using System.ComponentModel.DataAnnotations;

namespace Swork03_28.Api.Application.Commands.TraceableCommand
{
    public class TraceableUpdateCommand : IRequest<int>
    {
        public int Id { get; set; }

        /// <summary>
        /// 商品编号
        /// </summary>
        public int Gid { get; set; }

        [StringLength(500)]
        public string? Images { get; set; }
        
        [StringLength(1000)]
        public string? TestImgs { get; set; }

        [StringLength(100)]
        public string? Batch { get; set; }

        /// <summary>
        /// 保质期
        /// </summary>
        public int Shelflife { get; set; }

        /// <summary>
        /// 生产许可编号
        /// </summary>
        [StringLength(100)]
        public string? Number { get; set; }

        /// <summary>
        /// 生产企业
        /// </summary>
        [StringLength(100)]
        public string? ProduceEnterprise { get; set; }

        /// <summary>
        /// 信息完整度
        /// </summary>
        public double Completeness { get; set; }

        public string? CreatePeople { get; set; }

        public DateTime CreateTime { get; set; }

        public bool IsDel {  get; set; }
    }
}
